//
//  AP_V_Protocol.swift
//  APSwift
//
//  Created by jianbo.pei on 2023/4/4.
//

import Foundation

typealias AP_V_Protocol = APInitializeUIProtocol & APSetupProtocol

protocol APInitializeUIProtocol {
    /// 初始化UI
    func initUI()
    
    /// 设置UI约束
    func makeConstraints()
}

extension APInitializeUIProtocol {
    func initUI() {}
    func makeConstraints() {}
}


protocol APSetupProtocol {
    /// 根据数据源设置UI
    /// - Parameter model: 数据源
    func setup(_ model: Any?)
}

extension APSetupProtocol {
    func setup(_ model: Any?) {}
}
